import request from '@/utils/request'
import {
    commercialApiUrl,
} from '../config'
// 总包施工图预算列表
export function getList(data) {
    return request({
        url: commercialApiUrl+`/drawing-budget/query-total`,
        method: 'post',
        data
    })
}

// 总包施工图预算列表
export function getListCount(data) {
    return request({
        url: commercialApiUrl+`/drawing-budget/query-total/count`,
        method: 'post',
        data
    })
}
// 总包施工图预算新增
export function addList(data) {
    return request({
        url:commercialApiUrl+ '/drawing-budget/total',
        method: 'post',
        data
    })
}
// 总包施工图预算修改
export function editList(data) {
    return request({
        url: commercialApiUrl+'/drawing-budget/total/update',
        method: 'post',
        data
    })
}
// 总包施工图预算删除
export function deteleList(data) {
    return request({
        url:commercialApiUrl+ `/drawing-budget/total/del`,
        method: 'post',
        params: data
    })
}

// 总包施工图预算撤销/作废
export function cancelList(data) {
    return request({
        url:commercialApiUrl+ `/drawing-budget/total/cancel`,
        method: 'post',
        data: data
    })
}
// 总包施工图预算查看
export function findList(data) {
    return request({
        url:commercialApiUrl+ `/drawing-budget/total`,
        method: 'get',
        params: data
    })
}

// 总包施工图预算打印
export function print(data) {
    return request({
        url:commercialApiUrl+ `/drawing-budget/total/print`,
        method: 'get',
        params: data
    })
}